package cn.cy.domain;

import lombok.Data;
import org.json.JSONObject;

import javax.websocket.Session;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @Author: Xucranger
 * @Date: 22/5/4 19:36
 */


@Data
public class WebsocketEnity {
    private Session session;
    private String sid;
    private String tosid;
    private JSONObject data;
    private String msg;



    public WebsocketEnity(Session session, String sid,String tosid) {
        this.session = session;
        this.sid = sid;
        this.tosid =tosid;
    }

    public WebsocketEnity() {

    }

    public WebsocketEnity(Session session, String sid, String tosid, JSONObject data, String msg) {
        this.session = session;
        this.sid = sid;
        this.tosid = tosid;
        this.data = data;
        this.msg = msg;
    }

}
